package com.fbli.controller;

import com.fbli.pojo.Users;
import com.fbli.service.SelectUserListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@ResponseBody
public class SelectUserListController {

    @Autowired
    private SelectUserListService selectUserListService;

    @RequestMapping(value = "/userList")
    public List<Users> selectUserList(){

        List<Users> users = selectUserListService.selectUserList();


        return users ;

    }

}
